@import "../../component/weui/weui.wxss";
view {
  box-sizing: border-box;
}

.questions-box {

  .top-info {
    background: #4A4A4A;
    height: 200rpx;
    font-size: 32rpx;
    padding: 24rpx 40rpx;
    .coach-name {
      color: #fff;
      font-weight: bold;
      min-height: 100rpx;
      max-height: 100rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .coach-tip {
      align-content: center;
      justify-content: space-between;
      justify-items: center;
      color: #fff;
      .icon-clock {
        margin-right: 10rpx;
      }

      .to-check-self {
        font-size: 32rpx;
        height: 64rpx;
        line-height: 64rpx;
        padding: 0 32rpx;
        background: #14CC76;
        border-radius: 32rpx;
        color: #fff;
      }
    }
  }

  .study-info {
    color: #757575;
    .tab {
      .van-tab {
        color: #757575;
      }
      .van-tabs__line {
        background-color: #14CC76;
        height: 8rpx !important;
        width: 32rpx !important;
        left: 8%;
        bottom: 8rpx;
      }
      .van-tab--active {
        color: #4A4A4A;
        font-size: 36rpx;
        font-weight: bold;
      }
      .van-hairline--top-bottom:after {
        display: none;
      }
      .van-tabs__scroll--line {
        margin: 0 auto;
      }
      &.van-tabs--line .van-tabs__wrap {
        padding-right: 50%;
        //box-shadow:0 4rpx 8rpx 0 rgba(0,0,0,.1);
      }
    }
  }

  .section {
    background: #f7f7f7;
    line-height: 80rpx;
    padding: 0 10rpx;
    color: #4a4a4a;
    .title {
      word-break: break-all;
    }
  }

  .question-info {
    padding: 40rpx;
    border-bottom: 2rpx solid #EFEFEF;

    .stem {
      color: #4A4A4A;
      font-size: 32rpx;
      align-content: flex-start;
    }

    .option-box {
      margin-top: 20rpx;
    }

    .van-radio {
      margin: 20rpx 0 !important;
    }
    .xh-radio-root {
      padding: 10rpx 20rpx;
      border-radius: 8rpx;
      &.checked {
        background: rgba(39, 142, 255, .05);
        .xh-radio {
          color: #278EFF;
        }
      }
      .xh-radio-icon {
        color: #fff;
        &.single {
          &:before {
            display: none;
          }
        }
      }

      &.single-radio {
        &.checked {
          .van-radio__icon-wrap {
            .van-radio__icon {
              position: relative;
              &:before {
                position: absolute;
                content: '';
                top: 50%;
                left: 50%;
                margin-left: -10rpx;
                margin-top: -10rpx;
                display: inline-block;
                width: 20rpx;
                height: 20rpx;
                background: #fff;
                border-radius: 100%;
              }
            }
            .xh-radio-icon {
              &:before {
                content: '';
                display: none;
              }
            }
          }
        }
      }
    }
    .xh-radio {
      color: #4A4A4A;
      font-size: 32rpx !important;
    }

    .judge {
      margin-top: 10rpx;
      .xh-btn {
        height: 64rpx;
        line-height: 64rpx;
        border-radius: 32rpx;
        border: 2rpx solid #CCCCCC;
        display: inline-block;
        padding: 0 48rpx;
        margin-right: 20rpx;
        font-size: 32rpx;
        color: #4A4A4A;
        &.active {
          color: #fff;
        }
        &.right {
          &.active {
            background: #14CC76;
            border-color: #14CC76;
          }
        }
        &.wrong {
          &.active {
            background: #FF2D55;
            border-color: #FF2D55;
          }
        }
      }
    }

    .answer-analyze {
      margin-top: 20rpx;
      background: #F9F9F9;
      font-size: 28rpx;
      color: #4A4A4A;
      padding: 20rpx 30rpx;
      .label {
        color: #757575;

      }

      .answer {
        .label {
          margin-right: 30rpx;
          display: inline-block;
        }
      }

      .analyze {
        .label {
          width: 86rpx;
        }

        justify-content: flex-start;
      }
    }

    .catalog-expand {
      font-size: 28rpx;
      color: #14CC76;
      text-align: right;
      margin-top: 20rpx;
      .icon-arrow-up {
        margin-left: -10rpx;
        display: inline-block;
        font-size: 20rpx;
        transform: scale(.6);
        font-weight: bold;
      }
      .icon-arrow-down {
        margin-left: -10rpx;
        display: inline-block;
        font-size: 20rpx;
        transform: rotate(180deg) scale(.6);
        font-weight: bold;
      }
    }

    &.done {
      .xh-radio-root {
        &.checked {
          background: rgba(20, 204, 118, .05);
          .xh-radio {
            color: #14CC76;
          }
          &.wrong {
            background: rgba(255,45,85, .05);
            .xh-radio {
              color: #FF2D55;
            }
          }
        }
      }
    }
  }

  .answer-area {
    background: #F9F9F9;
    height: 80rpx;
    line-height: 80rpx;
    padding: 0 40rpx;
    font-size: 32rpx;
    color: #4A4A4A;
    font-weight: bold;
  }

  .uploader-box {
    padding: 48rpx 40rpx;
    .upload-tip-txt {
      color: #757575;
      position: absolute;
      bottom: 6rpx;
      font-size: 28rpx;
      display: inline-block;
      width: 100%;
      text-align: center;
    }
    .weui-uploader__input-box:after, .weui-uploader__input-box:before {
      top: 40%;
    }
  }

  .submit {
    font-size: 32rpx;
    height: 80rpx;
    line-height: 80rpx;
    width: 670rpx;
    margin: 20rpx auto;
    padding: 0;
    background: #14CC76;
    border-radius: 48rpx;
    color: #fff;
  }
}



.video-box {
  background: #fff;
  padding: 40rpx;
  margin-top: 20rpx;
  font-size: 0;
  .video {
    margin-bottom: 60rpx;
    display: inline-block;
    margin-right: 0;
    text-align: center;
    &:nth-child(2n + 1) {
      margin-right: 23rpx;
    }

    .cover {
      width: 320rpx;
      height: 180rpx;
      border-radius: 16rpx;
      position: relative;
      image {
        width: 100%;
        height: 180rpx;
        border-radius: 16rpx;
      }
      .video-tip {
        position: absolute;
        right: 10rpx;
        bottom: 10rpx;
        height: 32rpx;
        min-width: 104rpx;
        border-radius: 16rpx;
        background: rgba(33, 33, 33, 0.8);
        text {
          color: #ffffff;
          font-size: 20rpx;
          line-height: 32rpx;
        }
        image {
          width: 16rpx;
          height: 16rpx;
          margin-right: 6rpx;
        }
      }
    }
    .video-title {
      text-align: left;
      width: 320rpx;
      height: 80rpx;
      font-size: 28rpx;
      line-height: 40rpx;
      margin-top: 20rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }
}

